﻿<UserControl x:Class="EasyInvoice.WPF.Content.SettingsExport"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             xmlns:vm="clr-namespace:EasyInvoice.WPF.ViewModel"
             >
    <UserControl.DataContext>
        <vm:SettingsExportViewModel/>
    </UserControl.DataContext>
    <Grid Style="{StaticResource ContentRoot}">
        <ScrollViewer>
            <StackPanel Orientation="Vertical">
                <StackPanel.Resources>
                    <Style TargetType="StackPanel">
                        <Setter Property="Orientation" Value="Horizontal" />
                        <Setter Property="Margin" Value="0,0,0,4" />
                    </Style>
                    <Style TargetType="TextBlock">
                        <Setter Property="Width" Value="150" />
                        <Setter Property="VerticalAlignment" Value="Center" />
                    </Style>
                </StackPanel.Resources>

                <TextBlock Text="Export" Style="{StaticResource Heading1}" Margin="0,0,0,8" />
                <StackPanel>                  
                    <TextBlock Text="Export Invoice Folder:"  />
                    <TextBox Text="{Binding ExporFolderLocation}" MinWidth="400" MaxWidth="450" IsReadOnly="True" />
                    <Button  Command="{Binding ShowBrowseCommand}" Content="..." Margin="3,0"/>
                </StackPanel>
                <StackPanel>
                    <TextBlock/>
                    <Button Command="{Binding ShowSaveCommand}" Content="save" Margin="0,32,0,8" Width="140"/>
                </StackPanel>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
